div {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.snake {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}

.snake-wrap {
  position: relative;
  width: 500px;
  height: 500px;
  border-radius: 10px;
  background-color: antiquewhite;
  overflow: hidden;
}

.round {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: darkgray;
}

.round.head {
  background-color: dimgray;
}

.btn-group {
  margin-top: 20px;
}

.food {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: lightgreen;
  z-index: 1;
}

.result {
  display: none;
  position: absolute;
  text-align: center;
  font-size: 35px;
}
